<template>
 <div class="search" :style="{width:winWidth-20+'px'}">
<div :style="{width:winWidth-30+'px'}">{{search}}
    <span class="iconfont icon-search"></span>
</div>

 </div>
</template>

<script type="text/ecmascript-6">
 export default {
     props:['search'],
   data() {
     return {
winWidth:""
     }

   },  created:function(){
      wx.getStorageSync('userSystem')
      this.winWidth = wx.getStorageSync('userSystem').windowWidth
  }
 }
</script>

<style scoped >

 
</style>
